﻿<%@ Page Title="购物车" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ShopingCar.aspx.cs" Inherits="ShopingCar" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" Runat="Server">
	<!--开始-->
	<table class="layui-table" lay-skin="line" lay-size="lg">
		<tbody>
            <tr style="background-color:white ; color: #8C222C;">
			<th>图书ID</th>
			<th>时间</th>
			<th>数量</th>
			<th>金额</th>
			<th style="text-align: center;">操作</th>
		    </tr> 
            <%
                foreach (var item in orders)
                {

               %>
		    <tr>
			    <td><%=item.BookID %></td>
			    <td style="color: #8C222C;"><%=item.BookingTime%></td>
			    <td><%=item.Num %></td>
			    <td style="color: #8C222C;">￥<%=item.Price%></td>
			    <td style="text-align: center;">
				    <ul>
				        <li><a class="layui-btn layui-btn-primary layui-btn-sm" href="ShopingCar.aspx?bookid=<%=item.BookID %>&biaoshi=add">加入愿望单</a></li>
				    </ul>
			    </td>
		    </tr> 
             <%
               }
                %>
            <tr>
			<th></th>
			<th></th>
			<th></th>
			<th></th>
			<td style="text-align: center;"><button class="layui-btn layui-btn-lg" style="background-color: #8C222C;" runat="server" onserverclick="Unnamed_ServerClick2">去结算</button></td>
		</tr> 
		</tbody>
		
	</table>
    <fieldset class="layui-elem-field layui-field-title">
				  <legend>我的愿望单</legend>
				  <div class="layui-field-box">
				  	<div class="layui-col-md12"><!--显示图书-->
							<table class="layui-table" lay-even lay-skin="nob">
                               <colgroup>
                                <col width="150">
                                <col width="200">
                                <col>
                              </colgroup>
                              <thead>
                                <tr>
                                  <th>图书ID</th>
                                  <th>价格</th>
                                  <th>数量</th>
                                  <th>时间</th>
                                </tr> 
                              </thead>
                              <tbody>
                                  <%
                                      foreach (var item in LikeOrders)
                                      {
                                      %>
                                    <tr>
                                        <td><%=item.BookID %></td>
                                        <td><%=item.Price %></td>
                                        <td><%=item.Num %></td>
                                        <td><%=item.BookingTime%></td>
                                    </tr>
                                  <%
                                       }%>
                                </tbody>
                            </table>
						</div>
				  </div>
				</fieldset>
	<!--结束-->
</asp:Content>

